package com.ai.ly.goodsautocat.isphone;

import com.ai.ly.goodsautocat.common.Constants;
import com.ai.ly.goodsautocat.common.ISampleInfoBuilder;

public class IsPhoneYValueBuilder implements ISampleInfoBuilder{

    public static final String CAT_ID_PHONE="100";
    
    private static final ISampleInfoBuilder builder=new IsPhoneYValueBuilder();
    public static ISampleInfoBuilder getInstance() {
        return builder;
    }
    
    @Override
    public double getYValue(String catId) {
        double y=CAT_ID_PHONE.equals(catId)?Constants.YES:Constants.NO;
        return y;
    }
    
    @Override
    public int getDictSize() {
        return DictMapOfIsPhone.getDictSize();
    }
    @Override
    public int getIndexOfWordInDict(String word) {
        return DictMapOfIsPhone.getIndexOfWordInDict(word);
    }

}
